<!-- body -->
    <div id="hover-tip"></div>
    <div id="report">
        <p class="icolor">举报类型</p>
        <label><input type="checkbox" value="0">低俗色情</label>
        <label><input type="checkbox" value="1">垃圾广告</label>
        <label><input type="checkbox" value="2">辱骂攻击</label>
        <label><input type="checkbox" value="3">其他违法信息</label>
        <p class="icolor">举报理由</p>
        <textarea id="reason"></textarea>
        <p class="r"><span class="btn btn-default" id="cancle">取消</span><span class="btn btn-default" id="sure">提交</span></p>
    </div>
    <div id="hover-btn">
        <div class="top hand" to="top"></div>
        <div class="bottom hand" to="bottom"></div>
    </div>
    <div class="container nav-margin-top">
        <ol class="breadcrumb">
            <li><a href="/nsbbs/">首页</a></li>
            <li><a href="zone.php">版面目录</a></li>
            <li><a href="list.php?zid=<?php echo $module['zid']?>"><?php echo $module['zname']?></a></li>
            <li><a href="module.php?mid=<?php echo $module['mid']?>"><?php echo $module['mname']?></a></li>
            <li class="active"><?php echo htmlspecialchars($isExist['title'])?></li>
        </ol>
        <ul class="list-group">
            <li class="list-group-item list-header">
                <!-- post page -->
                <a href="module.php?mid=<?php echo $module['mid']?>" class="btn btn-default ns-back-btn">返回本版</a>
                <ul class="pagination">
                    <?php echo $page['html']?>
                </ul>
            </li>
            <li class="list-group-item">
                <!-- post title -->
                <div class="content-title">
                    <?php echo htmlspecialchars($isExist['title'])?>
                    <span class="hand color-959595" onclick="copyUrl()">[复制链接]</span>
                <?php if(!$isMain){ ?>
                    <a href="details.php?cid=<?php echo $cont_data[0]['cid']?>" class="r tomain">查看主题帖</a>
                <?php } ?>
                </div>
            </li>
            <li class="list-group-item main">
            <div id="meng">
                <div id="showimg">
                    <img src="" class="pic-scale">
                </div>
            </div>
                <!-- post main -->
<?php   $i = ($_GET['page']-1)*PAGE_SIZE;
        $lou_id = $isExist['uid'];
        foreach($cont_data as $cont_item){ 
        $louzhu = $cont_item['uid'] == $lou_id ? '[楼主]':'';               
?>              <?php if($cont_item['end']){ ?>
                    <span id="end"></span>
                <?php } ?>
                <div class="post-item clearfix">
                    <div class="post-owner">
                        <!-- post 用户信息 -->
                        <img src="<?php echo PHOTO_PATH.$cont_item['photo']?>">
                        <p class="username <?php echo $cont_item['stat']?>-status">
                            <a target="_blank" href="userinfo.php?uid=<?php echo $cont_item['uid']?>"><?php echo $cont_item['user']?></a>
                        </p>
                        <p class="nickname color-959595" title="昵称">
                            <?php echo $cont_item['nick']?>
                        </p>
                        <p class="detail">
                            <span class="content-num"><em>发帖数：</em><i><?php echo $cont_item['count']?></i></span>
                            <span class="fans-num"><em>粉丝：</em><i><?php echo $cont_item['fans']?></i></span>
                        </p>
            <?php if($user_data && $user_data['id'] != $cont_item['uid']){ ?>
                 <div class="action">
                    <b class="follow hand <?php echo $cont_item['followed']?>" title="<?php echo $cont_item['fol_msg']?>" id="<?php echo $cont_item['uid']?>"></b>
                    <a href="selfmail.php?to=<?php echo $cont_item['uid']?>"><b class="mail hand" title="私信ta"></b></a>
                </div>
            <?php } ?>
                    </div>
                    <div class="post-content-main">
                        <!-- post 内容 -->
                        <div class="post-content">
                            <div class="post-id-time clearfix">
                                <span class="post-id"><?php echo ++$i?>楼 <?php echo $louzhu?></span>
                <?php if($cont_item['update_time']){ ?>
                            <span class="post-time r">更新于 <?php echo $cont_item['update_time']?></span>  
                <?php }else{ ?>
                            <span class="post-time r">发表于 <?php echo $cont_item['time']?></span>
                <?php } ?>
                            </div>
                            <!-- post 正文 -->
                            <div class="post-content-body <?php if($i==1 && $do){echo $bdclass;}?>">
                            <?php echo $cont_item['body']?>
                            <?php if($cont_item['reply']){?>
                                <div class="reply-body color-959595">
                                    <p>
                                        <span class="reply-name"><?php echo $cont_item['reply']['user'].' ('.$cont_item['reply']['nick'].')'?></span> 在 ta 的帖子中提到：
                                    </p>
                                    <?php echo $cont_item['reply']['body']?>
                                </div>
                            <?php } ?>
                            </div>
                            <!-- post 附件 -->
                    <?php if($cont_item['file']){ ?>
                            <div class="attachment">
                                <b></b>
                                <ul>
                    <?php  foreach($cont_item['file'] as $file_item){ ?>
                                <li class="attachment-img">
                                    <img src="<?php echo IMG_PATH.$file_item?>">
                                </li>
                    <?php } ?>
                                </ul>
                            </div>
                    <?php } ?>
                        </div>
                        <!-- post 操作 -->
                        <div class="post-action clearfix">
                            <div class="l post-reply color-dbdbdb"><a href="publish.php?w=reply&c=<?php echo $_GET['cid']?>&r=<?php echo $cont_item['id']?>"><b></b><span>回帖</span></a></div>
                    <?php if($user_data){ ?>
                            <div class="l post-collect color-dbdbdb">
                                <span>
                                    <span class="col link hand" id="<?php echo $cont_item['id']?>"></span>
                                    <b class="<?php echo $cont_item['collected']?>"></b><span>收藏</span>
                                </span>
                                
                            </div>
                            <div class="l report color-dbdbdb">
                                <span>
                                    <span class="rep link hand" id="<?php echo $cont_item['id']?>"></span>
                                    <b></b><span>举报</span>
                                </span>
                            </div>
                    <?php } ?>
                        </div>
                    </div>
                </div>
<?php } ?>  
            </li>
            <li class="list-group-item">
                <!-- post page -->
                <a href="module.php?mid=<?php echo $module['mid']?>" class="btn btn-default ns-back-btn">返回本版</a>
                <ul class="pagination">
                    <?php echo $page['html']?>
                </ul>
            </li>
            <li class="list-group-item">
            <?php if(!$user_data){ ?>
                <div class="link please">
                    请先<a href="login.php">登录</a>,登录后才能发帖
                </div>
            <?php } ?>
                <!-- 回复 -->
                <form method="post" action="<?php echo $posturl?>">
                <div class="send">
                    <div class="send-label">快速回复楼主</div>
                    <div class="send-title clearfix">
                        <label class="l send-title-label">标题</label>
                        <div class="l send-title-input input">
                            <?php if($isMain){echo 'Re:';}?>
                            <?php echo htmlspecialchars($isExist['title'])?>
                        </div>
                    </div>
                    <div class="send-main clearfix">
                        <div class="send-tool">
                            <div class="bq-zone">
            <?php foreach($bq_arr as $key => $val){?>
                            <a href="javascript:addsmile('[<?php echo $key?>]');"><img src="<?php echo $val?>"></a>
            <?php } ?>
                            </div>
                            <label class="send-tool-emoji hand" id="emoji" title="表情"></label>
                            <label class="send-tool-img hand" for="img" title="添加图片"></label>
                            <input type="file" id="img" class="hide">
                        </div>
                        <div class="glfj-out"><span id="glfj">管理图片(<b>0</b>)</span></div>
                        <ul id="upload-zone" class="clearfix">
                            <span id="x" class="hand">x</span>
                            <li><span class="file-name icolor">文件名</span><span class="file-action">操作</span></li>
                        </ul>
                        <textarea onkeydown="tab(this)" name="body" class="form-control send-text-input" id="sendcontent" placeholder="发布的内容..." rows="12"></textarea>
                        <button name="submit" class="hand r" id="send-btn">回复</button>
                    </div>
                </div>
                </form>
            </li>
        </ul>
    </div>
    <input class="unvisiable" type="text" value="<?php echo $uri?>" id="url">
  <script  src="public/js/jquery.min.js"></script>
  <script  src="public/js/my-bootstrap.min.js"></script>
  <script async src="public/js/details.pc.js"></script>

